package com.huc.design.behavior.observer.base;

/**
 * @author huc
 * @version 1.0
 * @note
 * @date 2021/10/8 10:52
 */
public class Teacher extends Subject {
    @Override
    public void notifyObserver() {
        System.out.println("老师敲黑板");
        for (Observer observer : observers) {
            observer.response();
        }
    }
}
